
package com.controller.common;

import java.util.List;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.controller.dao.StaffDao;
import com.controller.entity.Staff;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:/applicationContext.xml" })
public class DemoTest {

	@Resource
	StaffDao staffDao;

	@Test
	public void aa() {

		Staff staff = new Staff();
		staff.setName(EnmType.admin);
		List<Staff> list = staffDao.getStaffList(staff);
		for (Staff sta : list) {
			System.out.println("****" + sta.getName());
		}
	}
}
